<%@ Register TagPrefix="forumsAdmin" TagName="Footer" Src="footer.ascx" %>
<%@ Register TagPrefix="forumsAdmin" TagName="Header" Src="header.ascx" %>
<%@ Import Namespace="AspNetForums" %>
<%@ Import Namespace="AspNetForums.Enumerations" %>
<%@ Import Namespace="AspNetForums.Components" %>
<%@ Register TagPrefix="Forums" Namespace="AspNetForums.Controls" Assembly="AspNetForums.Controls" %>
<%@ Page Language="c#" debug="true" CodeBehind="ManageRoles.aspx.cs" AutoEventWireup="false" Inherits="AspNetForums.Admin.ManageRoles" %>
<forumsAdmin:Header runat="server" id="Header1" />
		<span class="forumName">
			<% = ResourceManager.GetString("Role_Title")%>
		</span>
		<br>
		<span class="forumThread">
			<% = ResourceManager.GetString("Role_SubTitle")%>
		</span>
		<p>
			<form runat="server" ID="formManageRole">
				<asp:Repeater runat="server" ID="RoleRepeater">
					<HeaderTemplate>
						<table cellspacing="1" cellpadding="3" Class="tableBorder" width="100%">
							<tr>
								<th class="h1" align="left" colspan="3" width="100%">
									<% = ResourceManager.GetString("Role_AboutTitle")%>
								</th>
							</tr>
					</HeaderTemplate>
					<ItemTemplate>
						<tr>
							<td class="f">
								<%# (((int) DataBinder.Eval(Container.DataItem, "RoleID")) > 4) ? ("<a href=\"" + Globals.GetSiteUrls().AdminRoleEdit( (int)DataBinder.Eval(Container.DataItem, "RoleID") ) + "\">" + DataBinder.Eval(Container.DataItem, "Name") + "</a>") : "<b>" + DataBinder.Eval(Container.DataItem, "Name") + "</b> (not editable)"  %>
								<br>
								<%# DataBinder.Eval(Container.DataItem, "Description") %>
							</td>
						</tr>
					</ItemTemplate>
					<FooterTemplate>
						<tr>
							<td class="f">
								<asp:TextBox ID="RoleName" MaxLength="256" Columns="55" Runat="server" />
								<asp:Button ID="btnCreateNewRole" Runat="server" 
									Text='<%# ResourceManager.GetString("Create")%>' 
									OnClick="CreateNewRole_Click" />
								<br>
							</td>
						</tr>
						</table>
					</FooterTemplate>
				</asp:Repeater>
			</form>
<forumsAdmin:Footer runat="server" id="Footer1" />
